<?php

namespace App\Models;

use App\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class UserInvite extends Model
{
    use HasFactory, HasDateTimeFormatter;

    protected $table = 'users_invite';

    public function user()
    {
        return $this->belongsTo(User::class, 'user_id');
    }


    public function child()
    {
        return $this->belongsTo(User::class, 'child_user_id');
    }
}
